<?php
session_start();

require_once('../configs/common.php'); 	 
require_once("../configs/db_connect.php");
require_once('../models/SocNet.class.php');


if ($_POST['action']=="get_soc_net")
{
	 $request_data=safe_var_Array(json_decode($_POST['data']), true);		
	 $response=array();
	 $response['id']= SocNet::get_id($request_data['news_type'], $request_data['links']);
	 
	 header('Content-Type: application/json');
	 echo json_encode($response);
}